<%@ Page Language="C#" AutoEventWireup="true" Codebehind="EMPD0011.aspx.cs" Inherits="smasb2b.EMPD0011" %>
<%@ Register TagPrefix="uc1" TagName="top" Src="../top.ascx" %>
<%@ Register TagPrefix="uc1" TagName="left" Src="../left.ascx" %>
<%@ Register TagPrefix="uc1" TagName="footer" Src="../footer.ascx" %>
<%@ Register TagPrefix="ddsc" Namespace="ddscControlLibrary" Assembly="ddscControlLibrary" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
  <HEAD>
		<title>長榮航空採購資訊網-EVAAIR Procurement Information</title>
		<LINK href="/smasb2b/css/css.css" type="text/css" rel="stylesheet">
			<SCRIPT language="JavaScript" src="./js/VNDW0060.js">
</SCRIPT>
			<base target="_self">
  </HEAD>
	<BODY id="now_item_3" style="BACKGROUND-IMAGE: url(images/bg.jpg)">
		<form id="VNDW0050" runat="server">
			<TABLE class="main" cellSpacing="0" cellPadding="0" width="996" border="0">
				<tr>
					<td colSpan="3">
						<!-- 公用頁首 --><uc1:top id="Top1" runat="server"></uc1:top></td>
				</tr>
				<TR>
					<TD class="nonPrinted" vAlign="top" align="right" width="240"><uc1:left id="Left1" runat="server"></uc1:left></TD>
					<TD vAlign="top" align="center" width="750">
						<TABLE class="nonPrinted" cellSpacing="0" cellPadding="0" width="750" border="0">
							<TR>
								<TD><IMG id="IMG1" height="60" src="/smasb2b/images/chin/title/title_querypayment_status.JPG"
										width="750" runat="server"></TD>
							</TR>
						</TABLE>
						<asp:Panel ID="pnlResult" Runat="server" Visible="False">
							<asp:HyperLink ID="hlOrderLink" Runat="server" Target="_blank">如未開新視窗，請按此並列印訂單頁面</asp:HyperLink>
						</asp:Panel>
						<asp:PlaceHolder ID="phOrder" Runat="server">
						<!-- 網頁主畫面 -->
						<TABLE class="basicTable" id="table20" cellSpacing="0" cellPadding="0" width="650" bgColor="#ffffff"
							border="0">
							<TR>
								<TD vAlign="bottom" align="left" width="10"><IMG height="116" src="/smasb2b/images/table_bg_left.gif" width="10"></TD>
								<TD vAlign="top" align="center" width="700">
									<TABLE class="tableStyle4" id="table21" height="141" cellSpacing="0" cellPadding="0" width="594"
										border="0">
										<tr>
											<td colspan="4">
												<a href="images/p1.png" target="_blank"><img src="images/p1.png" style="width: 680px; maring: 0; padding: 0; border: 0;" /></a>
												<a href="images/p2.png" target="_blank"><img src="images/p2.png" style="width: 650px; maring: 0; padding: 0; border: 0;" /></a>
												<a href="images/p3.png" target="_blank"><img src="images/p3.png" style="width: 650px; maring: 0; padding: 0; border: 0;" /></a>
												<a href="images/p4.png" target="_blank"><img src="images/p4.png" style="width: 650px; maring: 0; padding: 0; border: 0;" /></a>
											</td>
										</tr>
										<TR>
											<TH align="center" colSpan="4">預購資料填寫</TH></TR>
										<TR>
											<TD align="center" width="65">
												人事代號
											</TD>
											<TD class="f1" colSpan="1">
												<ddsc:inputboxctrl id="txtEMP_ID" runat="server" Width="50px" maxlength="6"></ddsc:inputboxctrl>
											</TD>
										</TR>
										<TR>
											<TD align="center" width="65">
												公司名稱
											</TD>
											<TD class="f1" colSpan="1">
												<ddsc:inputboxctrl id="txtCOMPANY_NAME" runat="server" Width="200px" maxlength="50"></ddsc:inputboxctrl>
											</TD>
										</TR>
										<TR>
											<TD align="center" width="65">
												部門
											</TD>
											<TD class="f1" colSpan="1">
												<ddsc:inputboxctrl id="txtCOMPANY_DEPT" runat="server" Width="120px" maxlength="30"></ddsc:inputboxctrl>
											</TD>
										</TR>
										<TR>
											<TD align="center" width="65">
												電話
											</TD>
											<TD class="f1" colSpan="1">
												<ddsc:inputboxctrl id="txtCUST_TEL" runat="server" Width="80px" maxlength="15"></ddsc:inputboxctrl>
											</TD>
										</TR>
										<TR>
											<TD align="center" width="65">
												Email
											</TD>
											<TD class="f1" colSpan="1">
												<ddsc:inputboxctrl id="txtCUST_EMAIL" runat="server" Width="150px" maxlength="120"></ddsc:inputboxctrl>
											</TD>
										</TR>
										<TR>
											<TD align="center" width="65">
												姓名
											</TD>
											<TD class="f1" colSpan="1">
												<ddsc:inputboxctrl id="txtCUST_NAME" runat="server" Width="80" maxlength="10"></ddsc:inputboxctrl>
											</TD>
										</TR>
										<TR>
											<TD align="center" width="65">
												付款方式
											</TD>
											<TD class="f1" colSpan="1">
												<asp:RadioButtonList ID="cblPayType" Runat="server" RepeatDirection="Horizontal">
													<asp:ListItem Value="1">信用卡</asp:ListItem>
													<asp:ListItem Value="0">現金</asp:ListItem>
												</asp:RadioButtonList>
											</TD>
										</TR>
										<TR>
											<TD align="right" colSpan="4">
												<ddsc:submitbuttonctrl class="btnSave" id="btnSubmit" runat="server" Height="23px" Width="65px" Text="  " ScriptOnclick="return checkForm();"></ddsc:submitbuttonctrl>
											</TD>
										</TR>
									</TABLE>
								</TD>
								<TD vAlign="bottom" align="right" width="10"><IMG height="116" src="/smasb2b/images/table_bg_right.gif" width="10"></TD>
							</TR>
						</TABLE>
						<TABLE class="tableStyle5" id="DataGrid" cellSpacing="0" cellPadding="0" width="650" border="0"
							runat="server">
							<TBODY>
								<TR id="DataGrid_head">
									<TH class="tdtitle" width="17%">品名</TH>
									<TH class="tdtitle" width="17%">購買量</TH>
									<TH class="tdtitle-right" width="17%">規格</TH>
									<TH class="tdtitle" width="19%">金額</TH>
								</TR>
								<tr>
									<td style="TEXT-ALIGN: center">機上嚴選-銘果物語(輕巧包)</td>
									<td style="TEXT-ALIGN: center"><ddsc:inputboxctrl id="txtPROD1" runat="server" TypeMode="number" Width="50px"  maxlength="3" Text="0"></ddsc:inputboxctrl></td>
									<td style="TEXT-ALIGN: center">100 包 / 箱，14G ± 5% / 包</td>
									<td style="TEXT-ALIGN: center">300 元</td>
								</tr>
								<tr>
									<td style="TEXT-ALIGN: center">機上嚴選 - 果舖物語米果</td>
									<td style="TEXT-ALIGN: center"><ddsc:inputboxctrl id="txtPROD2" runat="server" TypeMode="number" Width="50px"  maxlength="3" Text="0"></ddsc:inputboxctrl></td>
									<td style="TEXT-ALIGN: center">60 包 / 箱，20G ± 5% / 包</td>
									<td style="TEXT-ALIGN: center">570 元</td>
								</tr>
								<tr>
									<td style="TEXT-ALIGN: center">長榮巧飲 - 橙果汁</td>
									<td style="TEXT-ALIGN: center"><ddsc:inputboxctrl id="txtPROD3" runat="server" TypeMode="number" Width="50px"  maxlength="3" Text="0"></ddsc:inputboxctrl></td>
									<td style="TEXT-ALIGN: center">150ML × 24 入 / 箱</td>
									<td style="TEXT-ALIGN: center">125 元</td>
								</tr>
								<tr>
									<td style="TEXT-ALIGN: center">長榮巧飲 - 蘋果汁</td>
									<td style="TEXT-ALIGN: center"><ddsc:inputboxctrl id="txtPROD4" runat="server" TypeMode="number" Width="50px"  maxlength="3" Text="0"></ddsc:inputboxctrl></td>
									<td style="TEXT-ALIGN: center">150ML × 24 入 / 箱</td>
									<td style="TEXT-ALIGN: center">125 元</td>
								</tr>
				</TR>
			</TABLE>
			<div align="center" style="WIDTH: 600px">
				<p align="left">
				◆注意事項：<br />
				1.此為EVA員購活動, 無法提供宅配服務, 訂購者請到運航大樓自取。<br />
				2.訂購完成後, 可用人事代號查詢。<br />
				3.付款方式可選擇現金或是信用卡支付。若選擇信用卡支付, 請於2011/1/4前列印訂單填寫付款資訊, co-mail至長榮航空電算本部 黃聖惠 收。<br />
				4.人事代號、聯絡電話務必填寫，敬請配合。<br />
				5.員購訂購時間：<span style="color: red">2010/ 12 / 31(五) 16：00截止。</span><br />
				6.領貨時間地點：<span style="color: red">2011/ 01 / 26 (三) 下午, Clare另外通知。</span><br />
				</p>
			</div>
			</asp:PlaceHolder>
			</TD></TD>
			<TD class="nonPrinted" vAlign="top" align="right" width="6"><IMG height="480" src="/smasb2b/images/main_right_shadow.jpg" width="6"></TD></TR>
			<TR>
				<TD vAlign="top" align="right" width="996" colSpan="3">
					<!-- 網頁頁尾--><A class="menu" href="javascript:window.print()">&nbsp;</A><uc1:footer id="Footer1" runat="server"></uc1:footer></TD>
			</TR></TBODY></TABLE>
		</form>
		<script type="text/javascript">
			function checkForm()
			{
				var name = ['機上嚴選-銘果物語(輕巧包)', '機上嚴選 - 果舖物語米果', '長榮巧飲 - 橙果汁', '長榮巧飲 - 蘋果汁'];
				var all = 4;
				var n = 0;
				var msg = [];
				if(document.getElementById('txtEMP_ID').value == '')
					msg.push('請填寫人事代號');
				if(document.getElementById('txtCOMPANY_NAME').value == '')
					msg.push('請填寫公司名稱');
				if(document.getElementById('txtCOMPANY_DEPT').value == '')
					msg.push('請填寫部門');
				if(document.getElementById('txtCUST_TEL').value == '')
					msg.push('請填寫電話');
				if(document.getElementById('txtCUST_NAME').value == '')
					msg.push('請填寫姓名');
				if(document.getElementById('txtCUST_EMAIL').value == '')
					msg.push('請填寫Email');
				if(!document.getElementById('cblPayType_0').checked && !document.getElementById('cblPayType_1').checked)
					msg.push('請選擇付款方式');
					
				if(msg.length > 0)
				{
					alert(msg.join('\n'));
					return false;
				}
				
				msg = [];
				for(var i = 1; i <= all; i++)
				{
					var q = document.getElementById('txtPROD' + i).value;
					if(q == '0' || q == '')
						n++;
					else if(q != '' && !isNaN(q))
						msg.push(name[i - 1] + ' ' + q + ' 份(箱)');
					else
						n++;
				}
				if(n == all)
				{
					alert('請填寫要購買項目的數量');
					return false;
				}
				
				return confirm('確定要購買下列項目：\n\n' + msg.join('\n'));
			}
		</script>
	</BODY>
</HTML>

